
function myAjax(url, data, type) {
    let result = null;
    //将异步关闭
    $.ajax({
        url: url,
        data: data,
        type: type,
        async: false,
        dataType: 'json',
        success: function (res) {
            // console.log(res)
            result = res;
        }
    })
    return result;
}